package ac.github.os.internal.core.action.addon.dargoncore

import eos.moe.dragoncore.api.CoreAPI
import ink.ptms.adyeshach.taboolib.common5.Coerce
import org.bukkit.entity.Player
import java.util.*

class WorldTextureStrategy(
    val players : MutableList<Player>,
    val uuid: UUID,
    val endStamp: Long
) {

    fun isEnd(stamp : Long): Boolean {
        return endStamp < stamp
    }

    fun removeAll() {
        players.forEach {
            CoreAPI.removePlayerWorldTexture(it,uuid.toString())
        }
    }
}